// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** getFileVariablesById GET /api/file/variables/get */
export async function getFileVariablesByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getFileVariablesByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFileVariables_>('/api/file/variables/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getFileVariablesVOById GET /api/file/variables/get/vo */
export async function getFileVariablesVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getFileVariablesVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFileVariablesVO_>('/api/file/variables/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listFileVariablesVOByPage POST /api/file/variables/list/page/vo */
export async function listFileVariablesVoByPageUsingPost(
  body: API.FileVariablesQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageFileVariablesVO_>('/api/file/variables/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateFileVariables POST /api/file/variables/update */
export async function updateFileVariablesUsingPost(
  body: API.FileVariablesUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/file/variables/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
